package com.ccsu.joysport.repository;


import com.ccsu.joysport.entity.ClubOperator;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface ClubOperatorRepository extends JpaRepository<ClubOperator, Long> {
    Optional<ClubOperator> findByClubIdAndOperatorStudentId(String clubId, String OperatorStudentId);
    List<ClubOperator> findByOperatorStudentId(String operatorStudentId);
    List<ClubOperator> findByClubId(String clubId);

    boolean existsByClubIdAndOperatorNameAndOperatorStudentId(String clubId, String operatorName, String operatorStudentId);
}
